<?php

use app\common\services\StaticServices;
use yii\helpers\Url;

?>

<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_notice.php', ['tab' => 'set']) ?>
<div class="ui equal width grid">
    <div class="column">
        <div class="panel">
            <div class="panel-alone-content">
                <form class="ui form">
                    <div class="field">
                        <label>功能标题:</label>
                        <input type="text" name="notice-title" placeholder="不能少于3个字"
                               value="<?= isset($info['notice_title']) ? $info['notice_title'] : '' ?>">
                    </div>
                    <div class="field">
                        <label>内容</label>
                        <textarea id="notice_editor"><?= isset($info['notice_content']) ? $info['notice_content'] : '' ?></textarea>
                    </div>
                    <input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
                    <input type="hidden" name="notice-id" value="<?= isset($info['id']) ? $info['id'] : 0 ?>">
                    <button class="ui green basic button notice-save  " type="button">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    require(['modules/notice/set'], function (set) {
        set.notice_editor()
    })
</script>